<%--
  User: yealove
  Date: 14-10-12
  Time: 下午9:29
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
<head>
    <c:import url="../include.jsp"/>
    <title>jquery validation</title>
</head>
<body>
<div class="container">
    <div class="row">
        <h3>form验证</h3>

        <form role="form" id="form1" class="form-horizontal form-inline">
            <div class="input-group col-md-5">
                <label for="exampleInputName" class="input-group-addon">Name</label>
                <input type="text" required="true" class="form-control" id="exampleInputName"
                       name="exampleInputName"
                       placeholder="Enter Name">
            </div>
            <div class="input-group col-md-5">
                <label for="exampleInputAge" class="input-group-addon">Age</label>
                <input type="text" number="true" required="true" class="form-control" id="exampleInputAge"
                       name="exampleInputAge"
                       placeholder="Age">
            </div>
            <div class="input-group col-md-1">
                <button type="submit" class="btn btn-default">Submit</button>
            </div>
        </form>
    </div>
    <div class="row form-inline">
        <h3>字段验证</h3>

        <form  id="a123">
            <div class="form-group col-md-4">
                <label for="name">姓名</label>
                <input name="name" id="name" notnull="true" class="form-control">
                <input type="button" class="btn btn-default" value="add" onclick="checkMe()">
            </div>
        </form>
    </div>
</div>
<script src="demo_check.js"></script>
</body>
</html>